package org.lq.his.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.lq.his.pojo.Registration;
import org.lq.his.pojo.Role;

public interface RegistrationService {
	
	/**
	 * 挂号
	 * @return
	 */
	public String registration(Registration registration);
	
	public List<Registration> getByToday(@Param("start") int start,@Param("limit") int limit,@Param("condition") Registration condition,@Param("column") String column,@Param("orderBy") String orderBy);
	
	public int getCountByCondition(@Param("condition") Registration condition);
	
	public Registration getYesNo(@Param("condition")Registration condition);
	
	/**
	 * 换号
	 * @param registration
	 * @return
	 */
	public String changeSigns(Registration registration);
	
	/**
	 * 退号
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public String hmsRepulse(Integer id);
	
	/**
	 * 根据id 查询
	 * @param id
	 * @return
	 */
	public Registration getById(Integer id);
	
}
